package com.wobangkj.common.repository;

import com.wobangkj.common.model.crud.Resume;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface ResumeRepository extends JpaRepository<Resume, Long> {
    @Query(nativeQuery = true, value="select * from  resume  where resume_id=:id ")
    Resume findByUserId(String id);

    @Query(nativeQuery = true, value="select * from  resume  where resume_id=:id ")
    public List<Map> findById(String id);
}
